// 集中管理跟岗位逻辑相关的所有的网络请求
import request from "../utils/request.js";

export const stuGet = () => {
  return request.get("classes/Stu");
};

//let a = stuGet()
// stuGet().then(res=>{})

// 岗位列表
export const jobGet = (page = 1) => {
  let skip = (page - 1) * 20;
  return request.get("classes/VueJob", {
    params: {
      limit: 20,
      skip: skip,
    },
  });
};

// 分类列表
export const catogoryGet = () => {
  return request.get("classes/VueClassify", {
    params: {
      where: {
        parent: "0-0",
      },
    },
  });
};

//请求岗位详情
export const jobDetailGet = (id) => {
  return request.get(`classes/VueJob/${id}`);
};
